﻿using System;

namespace Postnuclear
  {
  /// <summary>
  /// Extension for <see cref="IDisposable"/> interface which provides additional information if object has been disposed already or not.
  /// </summary>
  public interface IDisposed
    : IDisposable
    {
    // Properties

    /// <summary>
    /// Gets a value indicating whether this instance is disposed.
    /// </summary>
    /// <value><c>true</c> if disposed; otherwise, <c>false</c>.</value>
    bool Disposed
      {
      get;
      }
    }
  }
